from python:3.7

RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ "protobuf<=3.20"
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ bert-serving-server "tensorflow>=1.10,<2.0"

RUN mkdir -p /app

WORKDIR /app
ADD entrypoint.sh /app

EXPOSE 5555 5556

ENTRYPOINT ["/app/entrypoint.sh"]
